<%@ Control Inherits="CVCommunity.Admin.Advertise" %>
<%@ Register tagPrefix="forum" namespace="CVCommunity.Provider" assembly="CVCommunity.Provider"%>

<form runat="server">

<asp:Panel ID="listpanel" Visible="false"  runat="server">
<div class="grid">
<table cellspacing='0' class='inner'>
<tr class="forumno category">
<td width="50">删除？</td>
<td>名称</td>
<td width="30%">类型</td>
</tr>
<asp:Repeater ID="list" runat="server">
<itemtemplate>
<tr class="forumtd">
<td class="smallbox"><forum:Span id="box" runat="server" /></td>
<td><forum:Span id="name" runat="server" /></td>
<td><forum:Span id="type" runat="server" /></td>
</tr>
</itemtemplate>
</asp:Repeater>
</table>
</div>
<p>&nbsp;</p>
<div class="grid">
<table cellspacing='0' class='inner'>
<tr class="forumno category">
<td colspan="2">新广告项目</td>
</tr>
<tr class="forumtd">
<td width="150">名称</td>
<td><input name="ADDname" type="text" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" maxlength="300" id="ADDname" style="width:150px" runat="server"/></td>
</tr>
<tr class="forumtd">
<td>广告类型</td>
<td><asp:DropDownList ID="ADDtype" runat="server">
<asp:ListItem value="1">帖间广告</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr class="forumtd">
<td valign="top">广告内容<br />
<span class="t1">(支持 UBB)</span></td>
<td>
<script src="../scripts/common.js"></script>
<script src="../scripts/ubb.js"></script>
<script src="../scripts/ubbeditor.js"></script>
<script>CreateUbbEditor('ADDcontent', 15, '../');</script>
<textarea name="ADDcontent" rows="6" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" id="ADDcontent" style="width:550px; height:100px;"></textarea></td>
</tr>
<tr class="forumtd" align="center">
<td colspan="2"><asp:Button Text="  提 交  " class="button" runat="server" OnClick="Submit" /></td>
</tr>
</table>
</div>
</asp:Panel>
<asp:Panel runat="server" ID="editpanel" Visible="false">
<div class="grid">
<table cellspacing='0' class="inner">
<tr class="forumno category">
<td colspan="2">编辑广告项目</td>
</tr>
<tr class="forumtd">
<td width="150" valign="top">名称</td>
<td width="500"><input name="EDname" type="text" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" maxlength="300" id="EDname" style="width:150px;" runat="server"/></td>
</tr>
<tr class="forumtd">
<td>广告类型</td>
<td><asp:DropDownList ID="EDtype" runat="server">
<asp:ListItem value="1">帖间广告</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr class="forumtd">
<td valign="top">广告内容<br />
支持 UBB </td>
<td>
<script src="../scripts/common.js"></script>
<script src="../scripts/ubb.js"></script>
<script src="../scripts/ubbeditor.js"></script>
<script>CreateUbbEditor('EDcontent', 15, '../');</script>
<textarea name="EDcontent" rows="6" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" id="EDcontent" style="width:500px; height:100px;"><%=EDcontentValue%></textarea></td>
</tr>
<tr class="forumtd">
<td colspan="2" align="center"><input type="hidden" id="EDid" name="EDid" runat="server"/>
<asp:Button Text="  编 辑  " class="button" runat="server" OnClick="Sbedit" /></td>
</tr>
</table>
</asp:Panel>
</div>
</form>